package com.liuh.ssh2.dao;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.liuh.ssh2.pojo.User;

public class UserDao extends HibernateDaoSupport{

	/**
	 * @note 根据id 获取user
	 * @author liuh
	 * */
	public User getUserById(int id) {
		return (User)getHibernateTemplate().get(User.class, id);
		//return null;
	}
	
}
